package org.xg.study.pd;

/**
 * @author CMG
 * @version 1.0
 * @cLassName Singleton_04
 * @description 使用类的内部类（线程安全）
 * @date 2021/9/14 9:41
 **/
public class Singleton_04 {
    private static class SingletonHandler{
        private static Singleton_04 instance = new Singleton_04();
    }

    private Singleton_04(){

    }

    public static Singleton_04 getInstance(){
        return SingletonHandler.instance;
    }
}
